var months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec"];

var flight = document.forms.flight;
var departure = flight.departure;
var day = flight.day;
var month = flight.month;
var year = flight.year;

var today = new Date();
var tomor = new Date(today.getFullYear(),today.getMonth(),today.getDate() + 1,0,0,0,0);

var thisday = tomor.getDate();
var thismonth = tomor.getMonth();
var thisyear = tomor.getFullYear();

for (var i=1; i<=31; i++) {
	if (i == thisday) {
		day.options[i-1] = new Option(i, i, true, true);
	} else {
		day.options[i-1] = new Option(i, i);
	}
}

for (var i=0; i<12; i++) {
	if (i == thismonth) {
		month.options[i] = new Option(months[i],  i, true, true);
	} else {
		month.options[i] = new Option(months[i],  i);
	}
}

for (var i=0; i<2; i++) {
	if (i == 0) {
		year.options[0] = new Option(thisyear,  thisyear, true, true);
	} else {
		year.options[i] = new Option(thisyear + i,  thisyear + i);
	}
}
